//
//  RegisterViewController.h
//  ClassRoom
//
//  Created by apple on 12-11-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RegisterViewController : UIViewController<UIAlertViewDelegate>{
    
    IBOutlet UIToolbar *_toolBar;
    IBOutlet UIBarButtonItem *_weiboItem;
    NSString *emailSaved;
    NSString *passWordSaved;
   
}
@property (retain, nonatomic) IBOutlet UITextField *emailTextField;
@property (retain, nonatomic) IBOutlet UITextField *nameTextField;
@property (retain, nonatomic) IBOutlet UITextField *passwordTextField;
@property (retain, nonatomic) IBOutlet UITextField *repasswordTextField;

@property (retain, nonatomic) IBOutlet UIImageView *emailCheckImageView;
@property (retain, nonatomic) IBOutlet UIImageView *nameCheckImageView;
@property (retain, nonatomic) IBOutlet UIImageView *passwordCheckImageView;
@property (retain, nonatomic) IBOutlet UIImageView *repasswordCheckImageView;


//@property (retain, nonatomic) IBOutlet UIView *emailView;
//@property (retain, nonatomic) IBOutlet UIView *nameView;
//@property (retain, nonatomic) IBOutlet UIView *passwordView;
//@property (retain, nonatomic) IBOutlet UIView *repasswordView;

@property (retain, nonatomic) IBOutlet UILabel *nameLable;
@property (retain, nonatomic) IBOutlet UILabel *emailLable;
@property (retain, nonatomic) IBOutlet UILabel *passwordLable;
@property (retain, nonatomic) IBOutlet UILabel *repasswordLable;

@property (retain, nonatomic) IBOutlet UIImageView *nameImageView;
@property (retain, nonatomic) IBOutlet UIImageView *emailImageView;
@property (retain, nonatomic) IBOutlet UIImageView *passwordImageView;
@property (retain, nonatomic) IBOutlet UIImageView *repasswordImageView;


//@property (retain, nonatomic) IBOutlet UIImageView *emailCheckImageView;
//@property (retain, nonatomic) IBOutlet UIImageView *nameCheckImageView;
@property (assign,nonatomic) Boolean ifEmailEntryisTrue;
@property (assign,nonatomic) Boolean ifNameEntryisTrue;
@property (assign,nonatomic) Boolean ifPasswordEntryisTrue;
@property (assign,nonatomic) Boolean ifRepasswordEntryisTrue; 

- (IBAction)backHome:(id)sender;
- (IBAction)EmailEditingFinished;
- (IBAction)NameEditingFinished;
- (IBAction)PasswordEditingFinished;
- (IBAction)RePasswordEditingFinished;

- (IBAction)RegisterButtonPressed:(UIButton *)sender;



-(IBAction)backgroundTap;
-(void)BackTOMenu;//在二级菜单下返回主页
-(void)initRegistrView;
@end
